package com.cq.hd.gateway.config;

import com.cq.hd.gateway.filter.AddRequestParametersGatewayFilterFactory;
import com.cq.hd.gateway.filter.MerchantJwtCheckGatewayFilterFactory;
import com.cq.hd.gateway.filter.UserJwtCheckGatewayFilterFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: mYunYu
 * @date: 2021/7/7 17:15
 * @version: v1.0
 */
@Configuration
public class AppConfig {

    @Bean
    public AddRequestParametersGatewayFilterFactory addRequestParametersGatewayFilterFactory() {
        return new AddRequestParametersGatewayFilterFactory();
    }

    @Bean
    public UserJwtCheckGatewayFilterFactory userJwtCheckGatewayFilterFactory() {
        return new UserJwtCheckGatewayFilterFactory();
    }

    @Bean
    public MerchantJwtCheckGatewayFilterFactory sellerJwtCheckGatewayFilterFactory() {
        return new MerchantJwtCheckGatewayFilterFactory();
    }

}
